package com.antball.dd.decorator;

public class ConcreteDecorator extends Decorator {

    private String msg="000";

    public ConcreteDecorator(Component component) {
        super(component);
    }

    public ConcreteDecorator(Component component,String msg) {
        super(component);
        this.msg=msg;
    }


    @Override
    public void before() {
        System.out.println("前包装"+msg);
    }

    @Override
    public void after() {
        System.out.println("后包装"+msg);
    }
}
